// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_f;

import java.io.IOException;
import java.io.OutputStream;

// Referenced classes of package com.nnee.f:
//            g

public class cls_f
{

    public cls_f(String s, String s1)
    {
        ad = s;
        ae = s1;
    }

    protected static String m(String s)
    {
        StringBuilder stringbuilder;
        int i;
        stringbuilder = new StringBuilder();
        i = 0;
while(true)
{
        if(i >= s.length())
            break;
        switch(s.charAt(i))
        {
        	
        	case 34:
        		 stringbuilder.append("&quot;");
        		break;
        	case 38:
        		break;
        	case 39:
        		stringbuilder.append("&apos;");
        		break;
        	case 60:
        		stringbuilder.append("&lt;");
        		break;
        	case 62:
        		stringbuilder.append("&gt;");
        		break;
        	default:
        		stringbuilder.append(s.charAt(i));
        		break;
        }
        
        i++;
}
return stringbuilder.toString();
    }

    public String A()
    {
        return ae;
    }

    public double a(double d)
    {
        if(ae == null)
            return 0;
        double d1 = Double.parseDouble(ae);
        d = d1;
 
        return d;
        
    }

    public float a(float f1)
    {
        if(ae == null)
        	return 0;
        float f2 = Float.parseFloat(ae);
        f1 = f2;
 
        return f1;
        
    }

    public int a(int i)
    {
        if(ae == null)
        	return 0;
        int j = Integer.parseInt(ae);
        i = j;
 
        return i;
       
    }

    public long a(long l1)
    {
        if(ae == null)
            return 0;
        long l2 = Long.parseLong(ae);
        l1 = l2;
 
        return l1;
        
    }

    void b(OutputStream outputstream)
    {
        if(ae != null && ad != null)
        {
            com.nnee.p_f.cls_g.a(outputstream, "  ");
            try {
				outputstream.write(ad.getBytes());
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
            com.nnee.p_f.cls_g.a(outputstream, "=\"");
            try {
				outputstream.write(m(ae).getBytes());
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
            com.nnee.p_f.cls_g.a(outputstream, "\"");
        }
    }

    public boolean equals(Object obj)
    {
        boolean flag = true;
        if(obj instanceof cls_f)
        {
            cls_f f1 = (cls_f)obj;
            boolean flag1;
            boolean flag2;
            if(ad == null)
            {
                if(f1.z() == null)
                    flag1 = flag;
                else
                    flag1 = false;
            } else
            {
                flag1 = ad.equals(f1.z());
            }
            if(ae == null)
            {
                if(f1.A() == null)
                    flag2 = flag;
                else
                    flag2 = false;
            } else
            {
                flag2 = ae.equals(f1.A());
            }
            if(!flag2 || !flag1)
                flag = false;
        } else
        {
            flag = false;
        }
        return flag;
    }

    public void g(String s)
    {
        ae = s;
    }

    public void l(String s)
    {
        ad = s;
    }

    public String toString()
    {
        StringBuilder stringbuilder = new StringBuilder();
        stringbuilder.append("  ");
        stringbuilder.append(ad);
        stringbuilder.append("=\"");
        stringbuilder.append(m(ae));
        stringbuilder.append("\"");
        return stringbuilder.toString();
    }

    public String z()
    {
        return ad;
    }

    protected String ad;
    protected String ae;
}
